//
//  QLMaskLoadingView.m
//  QLSchool_IOS
//
//  Created by anan on 14-2-10.
//  Copyright (c) 2014年 baobaodev_anan. All rights reserved.
//

#import "QLMaskLoadingView.h"

@implementation QLMaskLoadingView

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        self.images = [NSMutableArray arrayWithObjects:
                       [UIImage imageNamed:@"loadprogress_large1"],
                       [UIImage imageNamed:@"loadprogress_large2"],
                       [UIImage imageNamed:@"loadprogress_large3"],
                       [UIImage imageNamed:@"loadprogress_large4"],
                       [UIImage imageNamed:@"loadprogress_large5"],
                       [UIImage imageNamed:@"loadprogress_large6"],nil];
    }
    return self;
}

- (void)startAnimating
{
//    self.imageViewLoading.animationImages = self.images;//将序列帧数组赋给UIImageView的animationImages属性
//    self.imageViewLoading.animationDuration = 1.0;//设置动画时间
//    self.imageViewLoading.animationRepeatCount = 0;//设置动画次数 0 表示无限
//    
//    [self.imageViewLoading startAnimating];//开始播放动画
    [self.activityIndicatorView startAnimating];
}

@end
